import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import { createPinia } from 'pinia';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
import axios from 'axios';

const app = createApp(App);
axios.defaults.baseURL = 'http://your-api-base-url';
app.config.globalProperties.$axios = axios; // 挂载到全局
axios.defaults.baseURL = '/api'; // 与 vite.config.js 中的代理对应
axios.defaults.timeout = 5000; // 超时时间


app.use(createPinia());
app.use(router);
app.use(ElementPlus);

app.mount('#app');